<#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="" onsubmit="return navTabSearch(this)">
<div class="pageHeader">
    <div class="searchBar">
        <table class="searchContent pageFormContent">
            <tr>
                <td><@label key='flowTaskType.C,colon'>任务类型:</@label></td>
                <td><input type="text" name="processDefineName" /></td>
                <!-- <td>发起人:</td>
                <td><input type="text" name="startor" /></td> -->
                <td><@label key='businessKey.C,colon'>业务编号:</@label></td>
                <td><input type="text" name="businessKey" /></td>
                
                <td><div class="buttonActive"><div class="buttonContent"><button type="submit"><@label key='query.B'>查询</@label></button></div></div></td>
                </tr>
        </table>
    </div>
</div>
</form>

<div class="pageContent">

    <div class="panelBar">
        <!-- <ul class="toolBar">
            <@buttonRight menuCode="service_add" labelKey="add.B" defalutName="新增">
            <li><a class="add" target="dialog" mask="true"  width="550" height="380" 
            href="${rc.getContextPath()}/manage/form/getFrom/USER/123"><span><@label key="add.B">新增</@label></span></a></li></@buttonRight>
        </ul> -->
    </div>
    <table class="table" width="100%" layoutH="135">
        <thead>
            <tr>
                <th><@label key='flowTaskType.C'>任务类型</@label></th>
                <th><@label key='startFlowUser.C'>发起人</@label></th>
                <th><@label key='flowTaskName.C'>任务名称</@label></th>
                <th><@label key='businessKey.C'>业务编号</@label></th>
                <th><@label key='createDateTime.C'>任务创建时间</@label></th>
                <th><@label key='workflowStatus.C'>流程状态<</@label></th>
                <th><@label key='opera.C'>操作</@label></th>
            </tr>
        </thead>
        <tbody>
        <#if page??><#if (page.data?size>0)> <#list page.data as task>
            <tr target="task_id" rel="${task.taskId!''}">
                <td>${task.processDefineName!''}</td>
                <td>${task.startor!''}</td>
                <td>${task.taskName!'' }</td>
                <td>${task.businessKey!'' }</td>
                <td>${(task.createTime?string("yyyy-MM-dd HH:mm:ss"))?if_exists}</td>
                <td>${task.suspended?string("已挂起","正常") };<b title='流程版本号'>V: ${task.version!'' }</b></td>
                <td><#if task.assignee?? && task.assignee!=""><a class="btnEdit" title="办理" target="dialog" rel="handleTask" 
                 mask="true" width="800" height="600" maxable="true" href="${rc.getContextPath()}/manage/workflow/handleTask/?taskId=${task.taskId!''}&navTabId=${navTabId!''}">办理</a>
                <#else><a class="btnSelect" target="ajaxTodo" title="签收" href="${rc.getContextPath()}/manage/workflow/claimTask/?taskId=${task.taskId!''}&navTabId=${navTabId!''}">签收</a></#if></td>
            </tr>
        </#list>
        <#else>
        <tr target="task_id">
                <td colspan="8" class="noData">======<@label key='noListData.C'>列表无数据</@label>=====</font></td>
        </tr>
        </#if>
        <#else>
        <tr target="task_id">
                <td colspan="8" class="noData">======<@label key='noListData.C'>列表无数据</@label>=====</font></td>
        </tr>
        </#if>
        </tbody>
    </table>
        <#include "/common/panelBar.html">
</div>